package com.itheima.mm.service;

import com.itheima.mm.dto.QuestionsDto;
import com.itheima.mm.dto.R;
import com.itheima.mm.pojo.*;

public interface QuestionsService {

    PageResult findAll(Integer page, Integer pagesize, String subjectID, String difficulty, String questionType, String tags, String province, String city, String keyword, String remarks, String shortName, String direction, String creatorID, String catalogID);

    void deleteById(Integer id);

    R addQestion(QuestionsDto questionsDto);

    QuestionsDto selectById(Integer id);

    void modifyById(Integer id, QuestionsDto questionsDto);

    void mofifyStatus(Integer questionId, Integer operationId);

    PageResult findAllBest( Integer page,Integer pagesize);

    void removeBest(Integer id, Integer choiceState);

    R auditById(Integer id, Body body);

    R selectOpinion(Integer id);

    R selectRecords(Integer id);

    PageResult pageList(Query query);
}
